<?php

/**
 * Copyright 2010 - 2013, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2010 - 2013, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
$this->Html->addCrumb('Home', '/admin');
$this->Html->addCrumb('Lista Usuários', array('action' => 'index'));
$this->Html->addCrumb('Editar Usuários', array());

echo $this->Form->create('Usuarios.Usuario', array(
    'inputDefaults' => array(
        'div' => 'form-group',
        'wrapInput' => false,
        'class' => 'form-control'
    ),
    'class' => 'well'
));
echo $this->Form->input('Usuario.id');
echo $this->Form->input('Usuario.username', array('label' => __d('users', 'Usuarioname')));
echo $this->Form->input('Usuario.email', array('label' => __d('users', 'Email')));
if (!empty(Configure::read('Routing.prefixes'))) {
    $prefix = array();
    foreach (Configure::read('Routing.prefixes') as $key => $value) {
        $prefix[$value] = $value;
    }
    echo $this->Form->input('Usuario.role', array('label' => 'Nível', 'options' => $prefix));
}
echo $this->Form->input('Usuario.status', array('label' => 'Situação', 'options' => array(0 => 'Não', 1 => 'Sim')));
echo $this->Form->input('Usuario.password', array('label' => __d('users', 'Password'), 'type' => 'password', 'value' => ''));
echo $this->Form->input('Usuario.temppassword', array('label' => __d('users', 'Password (confirm)'), 'type' => 'password', 'value' => ''));
echo $this->Form->button('Salvar', array('class' => 'btn btn-success', 'type' => 'submit', 'icon' => 'fa fa-save'));
echo $this->Form->end();
?>